package com.example.demo.controller;

import cn.aws360.boot.base.api.pojo.response.ResultModel;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author junnan
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/demo")
@Api(value = "demo", tags = "1000-实例模块")
@ApiSupport(order = 1000)
public class DemoController {

    @GetMapping("/hello")
    @ApiOperation(value = "hello")
    @ApiOperationSupport(order = 1)
    public ResultModel<String> hello() {
        return ResultModel.ok("Hello World...demo");
    }

}